<%@page import="com.module.ADUserModule"%>
<%@page import="com.valuebean.ADUser"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
<title>Llama商城</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="/CuitShopPlatform/css/bootstrap.min.css">
    <script src="/CuitShopPlatform/js/jquery-1.12.0.min.js"></script>
    <script src="/CuitShopPlatform/js/bootstrap.min.js"></script>
<style>
#new{
color:red;
}
</style>
  </head>
  <%
  ADUserModule adUserModule=new ADUserModule();
  ArrayList list =new ArrayList();
  list=adUserModule.selectMsg();
  ADUser user=new ADUser();
   %>
  <body>
<table class="table table-border table-hover">
  <tr >
  <td >商品信息表</td>
  <td><a id='new' href="/CuitShopPlatform/admin/userInsert.jsp">新增</a></td>
  <td></td>
   <td></td>
   <td></td>
  </tr>
  <tr >
    <td >用户ID</td>
    <td >用户名称</td>
    <td >用户密码</td>
  </tr>
    	<%
    	Iterator it=list.iterator();
    	while(it.hasNext()){
    	user=(ADUser)it.next();
    	 %>
    	
    	<tr>
    	<td ><%=user.getUserid()%></td>
    	
    	<td ><%=user.getUsername()%></td>

    	<td ><%=user.getUserpassword()%></td>
    	<td><a href="/CuitShopPlatform/admin/userUpdate.jsp?userid=<%=user.getUserid()%>">修改</a></td>
    	
    	<td><a href="/CuitShopPlatform/servlet/DoUser?action=del&userid=<%=user.getUserid()%>">删除</a></td>
    </tr>
    	<%
    	}
    	 %>
    	 </table>
    	 
  </body>
</html>
